#pragma once

#include "resource.h"
#include "defs.h"



typedef struct TOKEN
{
	char Connector;
	_WORD field_4;
	int FuncConfig;
	char SysFunCfgInfo;
	int ToolID;
	int EcuID;
	char Flag;
	unsigned char field_8B5;
}tt_Token, *ptt_Token;





int sub_C71525D8(int MenuSelID);
int j_GetSystemProfile(char* PathSrc, char* SeriesBuf);
int j_MakeAutoSelect();
int j_GetMakeFromAppIni(char *a1, int a2);
unsigned int j_SetMenuAutoSelect(unsigned int CoptLen, const void *a2);
int j_ManualAutoSelect();
int j_SetSystemODO(int ID, float CalNum, int Index);
int GetTextToMap();
int GetTextFromTextLibSpe(unsigned int, char *, unsigned int);
int SetDiagFuncInfo(int a1, char *a2, char a3);
int CheckSystemReadOdo(unsigned __int8 *OdoRcvBuf, int Len, int Mode, int MaxWaitTime, int ToolID, int EcuID, tt_Token *token);
int j_ReadToyotaOdo(int ConType);
int ShowMessageBoxID(unsigned int, unsigned int, unsigned int);
int CHK_CAN_BUS_iProtect(int ConType, __int16 Data, unsigned __int8 *a3);
int usleep(int);
int j_GetProductTypeDirPath(const char *a1, unsigned __int8 *s, char *a3);
int j_StringFind(unsigned __int8 *a1, const char *a2, signed int a3);
void j_GetSubString(const char *a1, char *a2, int a3, int a4);
int j_GetStdCfgValue(char *a1);
int j_AreaAutoChcek();
int j_GetLangurageCode(char *a1);
char* GetFileNameText(int);
int j_AreaAuotSelect(int MenuSelID);
int j_InitDesoMode(tt_Token *a1);
int JpPrtlSearch(int Connector, void *VehicleData, tt_Token *token);
char SelectPIN(char ConnectorType, char FuncType, char IsEnable, char InputPin, char OutputPin);
bool j_InitCanBusMode(int a1, int *EcuIDArr, char a3, int a4, int a5, float a6, int a7, int a8);
int j_InitKWPISOMode(int Connector, unsigned __int8 *a2, int fByteToByte, int wPacketToPacketLow, int wPacketToPacketHigh, int fBps);
int j_AutoSearchSelect(int MenuSelID);
int CanSetParameterNormal(int ConnectorType, char* a2);
int MenuPro(FILE *FP, int a2, const char *a3);
int j_DoUpTask();
int j_GetSelectedMenuPath(char *a1, size_t a2);
int j_GetCurrentMenuSubItemNum();
int sub_C7050044(int off, unsigned int *a2);
int j_GetMenuSubItemSaveData(int a1);
int sub_C704FD5C(int off, unsigned int *a2);
int sub_C704FFB0(int off, _DWORD *a2);
unsigned int j_CheckCurrentMenuSaveMark(int a1, int a2);
int AddMenuTextID(unsigned int ID);
int j_VehicleModeSelectNotice(unsigned int, unsigned int);
int j_ModeAutoSelectSpec();
int j_VehicleYearAutoSelect();
int j_EngineTypeAutoSelect();
int j_ModeOrVinAutoSelect();
int j_GetAutoSelect(int);
int ShowMenuGetSelectedItem2HD(_DWORD, _DWORD, __int16 *, __int16 *, char *);
int MenuEnableShow(unsigned char*);
int InitMenuID(int ID);
void InitMenu2HD(int, _DWORD, int, _DWORD);
int j_AutoJumpMenu(char*, FILE*);
int j_DoDownTask(int MenuSysID);
int j_VehicleSystemScan(int SysID);
int ShowMenuGetSelectedItem(_DWORD, _DWORD, __int16 *);
unsigned int sub_C704F7F8(unsigned __int8 *ReadBuf, int Offset, FILE *stream, int *MenuPath);
unsigned int sub_C7050904(int a1, FILE *a2, int *a3);
void AddCurMenu2HD(unsigned int *, int, _DWORD);
void AddHisTitleMenu2HD(int, unsigned int *, int, _DWORD);
bool j_InitCanBusMode(int a1, int *EcuIDArr, char a3, int a4, int a5, float a6, int a7, int a8);